/// examUid : null
/// answerTime : 21
/// answerTimeStr : null
/// createTimeStr : null
/// averageScore : 200
/// categoryOne : "PARTY_BUILDING"
/// categoryTwo : "PARTY_BUILDING_SUB"
/// createTime : "2021-02-17 15:59:25"
/// extractingTimes : 1
/// id : null
/// mineId : 25
/// obtainScore : 200
/// passPracticeTimes : 0
/// realName : "苏卫红"
/// department : "矿领导"
/// userPost : "专职副书记三级"
/// statisticsDate : "2021-02-17 00:00:00"
/// userId : 1463
/// userName : "pingquan2"

class BeanDayStat {
  dynamic examUid;
  int answerTime;
  dynamic answerTimeStr;
  dynamic createTimeStr;
  int averageScore;
  int extractingId;
  String categoryOne;
  String categoryTwo;
  String createTime;
  int extractingTimes;
  dynamic id;
  int mineId;
  int obtainScore;
  int extryScore = 1;
  int passPracticeTimes;
  String realName;
  String department;
  String userPost;
  String statisticsDate;
  int userId;
  String userName;
  String titleText;
  String answer;
  String myAnswer;
  String rightAnswer;
  String options;
  String integerRemark = '';
  num integerScore = 0;
  static BeanDayStat fromMap(Map<String, dynamic> map) {
    if (map == null) return null;
    BeanDayStat beanDayStatBean = BeanDayStat();
    beanDayStatBean.examUid = map['examUid'];
    beanDayStatBean.answerTime = map['answerTime'];
    beanDayStatBean.answerTimeStr = map['answerTimeStr'];
    beanDayStatBean.createTimeStr = map['createTimeStr'];
    beanDayStatBean.averageScore = map['averageScore'];
    beanDayStatBean.categoryOne = map['categoryOne'];
    beanDayStatBean.categoryTwo = map['categoryTwo'];
    beanDayStatBean.createTime = map['createTime'];
    beanDayStatBean.extractingTimes = map['extractingTimes'];
    beanDayStatBean.id = map['id'];
    beanDayStatBean.mineId = map['mineId'];
    beanDayStatBean.obtainScore = map['obtainScore'] ?? 0;
    beanDayStatBean.extryScore = map['extryScore'] ?? 1;
    beanDayStatBean.passPracticeTimes = map['passPracticeTimes'];
    beanDayStatBean.realName = map['realName'];
    beanDayStatBean.department = map['department'];
    beanDayStatBean.userPost = map['userPost'];
    beanDayStatBean.statisticsDate = map['statisticsDate'];
    beanDayStatBean.userId = map['userId'];
    beanDayStatBean.userName = map['userName'];
    beanDayStatBean.titleText = map['titleText'];
    beanDayStatBean.answer = map['answer'] ?? "";
    beanDayStatBean.myAnswer = map['myAnswer'] ?? "";
    beanDayStatBean.rightAnswer = map['rightAnswer'] ?? "";
    beanDayStatBean.options = map['options'] ?? "";

    beanDayStatBean.integerRemark = map['integerRemark'] ?? '';

    beanDayStatBean.extractingId = map['extractingId'] ?? 0;

    beanDayStatBean.integerScore = map['integerScore'] ?? 0;

    return beanDayStatBean;
  }

  Map toJson() => {
        "examUid": examUid,
        "answerTime": answerTime,
        "answerTimeStr": answerTimeStr,
        "createTimeStr": createTimeStr,
        "averageScore": averageScore,
        "categoryOne": categoryOne,
        "categoryTwo": categoryTwo,
        "createTime": createTime,
        "extractingTimes": extractingTimes,
        "id": id,
        "mineId": mineId,
        "obtainScore": obtainScore,
        "passPracticeTimes": passPracticeTimes,
        "realName": realName,
        "department": department,
        "userPost": userPost,
        "statisticsDate": statisticsDate,
        "userId": userId,
        "userName": userName,
      };
}
